﻿using System;
using System.Collections.Generic;
using System.Windows.Data;

namespace SQLDeploy.Builder.Converters
{
    public class IsViewVisableConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            if (!(value is System.Windows.Visibility))
                return true;
            else
            {
                System.Windows.Visibility vis = (System.Windows.Visibility)value;
                return vis != System.Windows.Visibility.Visible;
            }
        }

        public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}
